package lianxi4;
//员工总类
public class ColaEmployee {
    private String name;
    private int birthMonth;

    public String getName() {
        return name;
    }

    public int getBirthMonth() {
        return birthMonth;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setBirthMonth(int birthMonth) {
        this.birthMonth = birthMonth;
    }

    public ColaEmployee(String name, int birthMonth) {
        this.name = name;
        this.birthMonth = birthMonth;
    }
    public double getSalary(int month){
        if(birthMonth==month){
            return 100;
        }
        return 0;
    }
}
